//需要先安装ElementPlus的依赖
import ElementPlus, {ElButton, ElLoading, ElScrollbar} from 'element-plus'
import 'element-plus/dist/index.css'
import {App, createApp} from 'vue'
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
// import Sortable from 'sortablejs';
// import {AvueCrud}from '@smallwei/avue';

// import zhLocale from '@smallwei/avue/lib/locale/lang/zh'
// import enLocale from '@smallwei/avue/lib/locale/lang/en'

  const plugins = [ElementPlus]

export const setupAVuePlugin = (app: App<Element>) => {
  plugins.forEach((plugin) => {
    app.use(plugin)
  })

  // // app.use(AvueCrud)
  // // app.use(sortable)
  // app.use(ElementPlus)
  app.use(Avue)
}

